<% form_remote_for :payable_bill, :url => { :action => 'pay' } do |f| -%>
<%= f.hidden_field :id, :value => @payable_bill.id %>
<h2>Pay Bill</h2>

<div class="row">
  <label>Paid From</label>
  <%= f.select :account_id, current_user.accounts.collect {|a| [a.name, a.id]}, :class => 'field' %>
</div>

<div class="row">
  <label>Reciept</label>
  <%= f.text_field :receipt, :class => 'field' %>
</div>

<%= submit_tag 'Pay Bill', :class => 'submit' %>
<%= link_to_remote 'Cancel', :url => { :action => 'close_pay', :id => @payable_bill.id } %>
<% end -%>
